<!DOCTYPE html>
<html style="height: 100%" lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">

	<div id="main" style="height: 100%"></div>
<!-- 引入jquery -->
<script type="text/javascript" th:src="@{/ajax/libs/jquery/3.5.0/dist/jquery.min.js}"></script>
	<script type="text/javascript"
		th:src="@{/ajax/libs/echarts/5.0.1/dist/echarts.min.js}"></script>
	<script type="text/javascript">
	var chartDom = document.getElementById('main');
	var myChart = echarts.init(chartDom);
	var option;

	option = {
	    series: [{
	        type: 'gauge',
	        progress: {
	            show: true,
	            width: 18
	        },
	        axisLine: {
	            lineStyle: {
	                width: 18
	            }
	        },
	        axisTick: {
	            show: false
	        },
	        splitLine: {
	            length: 15,
	            lineStyle: {
	                width: 2,
	                color: '#999'
	            }
	        },
	        axisLabel: {
	            distance: 25,
	            color: '#999',
	            fontSize: 20
	        },
	        anchor: {
	            show: true,
	            showAbove: true,
	            size: 25,
	            itemStyle: {
	                borderWidth: 10
	            }
	        },
	        title: {
	            show: false
	        },
	        detail: {
	            valueAnimation: true,
	            fontSize: 80,
	            offsetCenter: [0, '70%']
	        },
	        data: [{
	            value: 70
	        }]
	    }]
	};

	option && myChart.setOption(option);
	
	</script>
</body>
</html>